package deom2;

public class Test {

    public static void main(String[] args) throws PosException,ArrayIsEmpty {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.addData(1);
        myArrayList.addData(2);
        myArrayList.addData(3);
        myArrayList.addData(4);
        myArrayList.addData(5);
        myArrayList.addData(6);
        myArrayList.addPosData(99,2);
        myArrayList.addPosData(999,1);
        myArrayList.print();
        myArrayList.delData(3);
        myArrayList.print();
        myArrayList.delData(2);
        myArrayList.print();
        myArrayList.setPosData(888,2);
        myArrayList.print();
        myArrayList.clean();
        myArrayList.print();

    }
}
